f = open("text.txt", "r",encoding="utf-8")
print(f.read(5))
f.readline()
f.readlines()
for line in f:
    print(line)
f.close()
with open("text.txt", "r",encoding="utf-8") as f:
    for line in f:
        print(line)